Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 4.0 HomeView Design 반영 #480

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

wltnryu
Copy link
Collaborator

@wltnryu wltnryu commented Feb 26, 2025

변경 사항

기존에 사용하던 검색 관련 코드를 정리하였습니다 ✨

무니가 새로운 검색 코드를 정리해 줘서, 기존에 사용하던 코드는 더이상 사용하지 않음을 확인하였습니다! 과감하게 삭제 갈겼으니 사라진 코드가 많지만 걱정 마세요 :)

HomeView의 레이아웃이 크게 개편되었습니다 ✨

기존에 사용하던 InfoView는 모두 삭제하고, 상단 메뉴바를 제외한 HomeView를 크게 두 가지로 나누어 디자인과 같이 왼쪽을 폴더와 같은 문서 분류 기준, 오른쪽을 문서 리스트로 분리하였습니다! 그래서 기존에 사용했던 FileSystemItem 구조체는 더이상 사용하지 않아요! (아직 파일은 삭제하지 않았습니다!)

image

기존 로직을 전부 이동했어요 ✨

3.0 Reazy에서 사용하던 로직을 새로 개편된 레이아웃 Cell에 모두 적용했고, 이는 무니가 작성해 준 검색 뷰 로직을 참고하였습니다!

팀원에게 전달할 사항(Optional)

  • 다중 선택을 위한 HomePDFCell 디자인 편집을 부탁합니다!
  • 폴더 셀의 커스텀 popover 작업만 도와주세요......
    @mooninbeom 감사합니다......

close #477

@wltnryu wltnryu added Feature 기능의 추가가 필요할 때 PR-InProgress 현재 작업이 진행중인 PR labels Feb 26, 2025
@wltnryu wltnryu self-assigned this Feb 26, 2025
@wltnryu wltnryu requested review from mooninbeom, Dorii0513, minjung0067, JeEonPark and Bluecho97 and removed request for mooninbeom and Dorii0513 March 18, 2025 14:05
@wltnryu wltnryu added PR-NeedReview 작업이 완료되고 리뷰가 필요한 PR and removed PR-InProgress 현재 작업이 진행중인 PR labels Mar 18, 2025

struct PaperInfo: Identifiable, Hashable {
struct PaperInfo: Identifiable, Hashable, Codable, Transferable {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paper Cell을 Folder Cell로 드래그 앤 드롭하고, 해당 액션을 통해 문서의 위치를 이동하는 로직을 적용하기 위해 추가하였습니다!

@State private var isMainSelected: Bool = true
@State private var isFavoriteSelected: Bool = false
@State private var isTagSelected: Bool = false
@State private var selectedCategory: CategorySelection = .main
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HomeListView에서 전체 / 즐겨찾기 / 태그 / 폴더 중 한 가지만 선택 가능해야 했기에, selectedCategory를 통해 케이스를 분리하였습니다!

if isMovingFolder {
let itemsToMove: [FileSystemItem] = selectedItems.isEmpty
if homeViewModel.isMovingFolder {
let itemsToMove: [PaperInfo] = homeViewModel.selectedItems.isEmpty
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

폴더 이동 변수를 Binding을 통해 넘기기 보다는 ViewModel이 해당 변수를 가지도록 하여 View 사이의 의존도를 낮추고자 했습니다! 근데 이건 한 번 크게 개편을 해야 할 것 같아요...... QA 할 때 기능을 해치지 않는 선에서 한 번 쓱 둘러보겠습니다 :)

Copy link
Collaborator

@minjung0067 minjung0067 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그녀는 빛.. 고생 많았어요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 기능의 추가가 필요할 때 PR-NeedReview 작업이 완료되고 리뷰가 필요한 PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 4.0 디자인 최종 반영
3 participants